﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class UserHandCardsRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 4;

        public int LocationIndex { get; set; }

        public int[] Cards { get; set; }

        public string AllCardType { get; set; }

        public string ShowCardType { get; set; }

        public void decode(Input _in)
        {
            LocationIndex = _in.readInt();
            Cards = _in.readIntArray();
            AllCardType = _in.readString();
            ShowCardType = _in.readString();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "ExitRoomReq [UserID=" + LocationIndex + "Crads =" + Cards + "AllCardType = " + AllCardType + "SetCardType=" + ShowCardType + " ]";
        }
    }
}